home *** CD-ROM | disk | FTP | other *** search
/ Summer Blondes / Summer Blondes.iso / pc / summer.dir / 00057_Field_57.txt < prev    next >
Text File  |  1995-06-30  |  16KB  |  587 lines

  1. on Init --startMovie
  2.   Global ClipLoc,CpBnList,IDVar,CrdMaxNum,CredBarIncr,CpSdList,CpVidList, ┬¼
  3.             CpUtilList,CpPhtList,CpAnmList,DownLoad,Order,TestDrive,Addinfo,┬¼
  4.             VolumeVar
  5.   
  6.   Set DownLoad = "Quadra 800:Desktop Folder:RHintrfc:dwnld.pic"
  7.   Set Order = "Quadra 800:Desktop Folder:RHintrfc:order.pic"
  8.   Set TestDrive = "Quadra 800:Desktop Folder:RHintrfc:tstdrv.pic"
  9.   Set Addinfo = "Quadra 800:Desktop Folder:RHintrfc:Addinfo.txt"
  10.   
  11.   Set ClipLoc = 235
  12.   Set the volume of sound 1 to 200
  13.   Set VolumeVar = 200
  14.   
  15.   Set the forecolor of cast "NameField" = 0
  16.   Set the textStyle of field "NameField" = "bold,extend"
  17.   --Put " " into cast "Help Screen Display" -- not currently used
  18.   --Set the forecolor of cast "Help Screen Display" = 0
  19.   --Set the textStyle of field "Help Screen Display" = "bold,extend"
  20.   
  21.   Put " " into field "CreditsInfoDisplay"
  22.   Set CpBnList = [1:0,2:0,3:0,4:0,5:0] -- Clip Button List
  23.   Set IDVar = 0
  24.   Set CrdMaxNum = 11 -- No of credits minus original display of 5
  25.   Set CredBarIncr = 11 -- total distance (125 pix) divided by CrdMaxNum 
  26.   
  27.   Set CpAnmList= ["B&W 3.1","Liftoff","Exclamation Point","Dollar Sign",┬¼
  28.                   "B&W 3.1","Liftoff","Exclamation Point","Dollar Sign",┬¼
  29.                   "B&W 3.1","Liftoff","Exclamation Point","Dollar Sign"]
  30.   
  31.   Set CpPhtList= ["Photo 1","Photo 2","Photo 3","Photo 4"]
  32.   Set CpSdList = ["Read My Lips","Moof","Read My Lips","Moof"]
  33.   
  34.   Set CpVidList = ["B&W 3.1","Liftoff","Exclamation Point","Dollar Sign",┬¼
  35.                   "B&W 3.1","Liftoff","Exclamation Point","Dollar Sign",┬¼
  36.                   "B&W 3.1","Liftoff","Exclamation Point","Dollar Sign"]
  37.   
  38.   Set CpUtilList = ["Utility 1","Utility 2","Utility 3","Utility 4"]
  39.   
  40. end Init  --startMovie
  41. ---------------------------------------------
  42. on CpAnmInit
  43.   Global ButtonNum,ScaleFac,ListVar,CpAnmList,Viztype
  44.   
  45.   puppetSprite 25, False -- PhtPictDisplay
  46.   puppetSprite 40, False
  47.   puppetSprite 41, False -- VidPictDisplay
  48.   Set ButtonNum = 1
  49.   Set ScaleFac = 10
  50.   Set ListVar = CpAnmList
  51.   Set Viztype = 2
  52.   --Set the visibility of sprite 30 to False -- tweak
  53.   ClipCleanUp
  54.   CpBnUpdate --change orderof sprite action & slider reset-update
  55.   VidPictDisplay
  56. end CpAnmInit
  57. ---------------------------------------------
  58. on CpPhtInit
  59.   Global ButtonNum,ScaleFac,ListVar,CpPhtList,Viztype 
  60.   
  61.   puppetSprite 25, False
  62.   puppetSprite 40, False
  63.   puppetSprite 41, False
  64.   Set ButtonNum = 2
  65.   Set ScaleFac = 40
  66.   Set ListVar = CpPhtList
  67.   Set Viztype = 1 -- f/ slider update of screen
  68.   ClipCleanUp
  69.   CpBnUpdate
  70.   PictDisplay
  71. end CpPhtInit
  72. ---------------------------------------------
  73. on CpSdInit
  74.   Global ButtonNum,ScaleFac,ListVar,CpSdList,Viztype
  75.   
  76.   puppetSprite 25, False
  77.   puppetSprite 40, False
  78.   puppetSprite 41, False
  79.   Set ButtonNum = 3 
  80.   Set ScaleFac = 30
  81.   Set ListVar = CpSdList
  82.   Set Viztype = 0
  83.   ClipCleanUp
  84.   CpBnUpdate
  85. end CpSdInit
  86. ---------------------------------------------
  87. on CpVidInit
  88.   Global ButtonNum,ScaleFac,ListVar,CpVidList,Viztype 
  89.   
  90.   puppetSprite 25, False
  91.   puppetSprite 40, False
  92.   puppetSprite 41, False
  93.   Set ButtonNum = 4
  94.   Set ScaleFac = 10
  95.   Set ListVar = CpVidList
  96.   Set Viztype = 2
  97.   ClipCleanUp
  98.   CpBnUpdate
  99.   VidPictDisplay
  100. end CpVidInit
  101. ---------------------------------------------
  102. on CpUtilInit
  103.   Global ButtonNum,ScaleFac,ListVar,CpUtilList,Viztype
  104.   
  105.   puppetSprite 25, False
  106.   puppetSprite 40, False
  107.   puppetSprite 41, False
  108.   Set ButtonNum = 5
  109.   Set ScaleFac = 40
  110.   Set ListVar = CpUtilList
  111.   Set Viztype = 0
  112.   ClipCleanUp
  113.   CpBnUpdate
  114. end CpUtilInit
  115. ---------------------------------------------
  116. on SpriteShutDown
  117.   
  118.   puppetSprite 48, False  -- ? temp button ch. poss. yel crdts bn in credits
  119.   puppetSprite 47, False -- help button,
  120.   puppetSprite 46, False -- vol slider
  121.   puppetSprite 45, False -- backplate f/ vol slider
  122.   puppetSprite 41, False
  123.   puppetSprite 40, False
  124.   puppetSprite 39, False
  125.   puppetSprite 38, False
  126.   puppetSprite 37, False
  127.   puppetSprite 36, False
  128.   puppetSprite 35, False -- slider
  129.   puppetSprite 34, False -- win bar
  130.   puppetSprite 32, False -- up arrow
  131.   puppetSprite 31, False -- dwn arrow,zoom
  132.   puppetSprite 30, False -- video
  133.   puppetSprite 25, False -- text,pict photo
  134.   --puppetSprite 23, False -- vol. Icon -- only shut down at end - ?
  135.   
  136. end SpriteShutDown
  137. ---------------------------------------------
  138. on ClipCleanUp
  139.   
  140.   puppetSound 0
  141.   put "" into field "NameField"
  142. end  ClipCleanUp
  143. ---------------------------------------------
  144. on ButtonHandler
  145.   Global Go
  146.   
  147.   Set Go = True
  148.   Set n = the castnum of sprite the clickon 
  149.   Set n = n + 1
  150.   
  151.   repeat while the mouseDown
  152.     If ((the castNum of sprite the clickOn) = the mouseCast) then
  153.       Set the castnum of sprite the clickon = n
  154.       updateStage
  155.     else --
  156.       Set the castnum of sprite the clickon = n - 1
  157.       updateStage
  158.       Set Go = False
  159.       if the mouseUp then
  160.         Set Go = 0
  161.       else if ((the castNum of sprite the clickOn) = the mouseCast) then  
  162.         Set the castnum of sprite the clickon = n     --rollbkon
  163.         updateStage
  164.         Set Go = 1
  165.       end if
  166.     end if
  167.   end repeat
  168.   
  169.   Set n = n - 1
  170.   Set the castnum of sprite the clickon = n
  171. end ButtonHandler
  172. ---------------------------------------------
  173. on MusicFade
  174.   
  175.   sound fadeOut 1, 2*60
  176.   
  177. end MusicFade
  178. ---------------------------------------------
  179. on HelpEnable
  180.   
  181.   puppetSprite 47, True
  182.   Set the locH of sprite 47 = 116
  183.   Set the locV of sprite 47 = 334
  184.   Set the castNum of sprite 47 = 345 -- Help Down
  185.   updateStage
  186.   --HelpDisplay
  187.   
  188. end HelpEnable
  189. ---------------------------------------------
  190. on HelpDisable
  191.   
  192.   puppetSprite 47, False -- the button
  193.   puppetSprite 48, False -- the display
  194.   updateStage
  195.   --go to marker (-1)
  196.   
  197. end HelpDisable
  198. ---------------------------------------------
  199.  
  200. on SliderHandler 
  201.   
  202.   Global ClipLoc
  203.   
  204.   --SpriteShutDown
  205.   repeat while the mouseDown 
  206.     
  207.     puppetSprite 37, true  -- 37
  208.     Set the castNum of sprite 37 to 198
  209.     Set the moveableSprite of sprite 37 to True
  210.     Set the constraint of sprite 37 to 36
  211.     Set the locH of sprite 37 to the mouseH
  212.     Set ClipLoc to the mouseH
  213.     SliderReadOut
  214.     updateStage
  215.   end repeat
  216.   
  217.   LocStore
  218.   
  219. end SliderHandler
  220.  
  221. ---------------------------------------------
  222. on SliderUpdate
  223.   Global ClipLoc
  224.   
  225.   puppetSprite 37, true
  226.   Set the visible of sprite 37 = true
  227.   Set the locH of sprite 37 = ClipLoc 
  228.   SliderReadOut
  229.   updateStage
  230.   
  231. end SliderUpdate
  232. ---------------------------------------------
  233. on SliderButton n
  234.   Global ClipLoc,ScaleFac
  235.   
  236.   Set ClipLoc = ClipLoc + (n*ScaleFac)  
  237.   SliderReadOut 
  238.   LocStore
  239.   
  240. end SliderButton
  241. ---------------------------------------------
  242. on SliderReadOut 
  243.   Global ClipLoc,ScaleFac,LocNum
  244.   
  245.   If ClipLoc > 353 then set ClipLoc = 353
  246.   If ClipLoc < 234 then set ClipLoc = 234
  247.   Put ((ClipLoc - 234)/ScaleFac) +1 into field "LocReadOut"
  248.   Set LocNum = ((ClipLoc - 234)/ScaleFac) +1
  249.   --FieldReadOut -- can be re-enabled f/ continous but slow readout
  250.   -- another ver tbd
  251. end SliderReadOut 
  252. ---------------------------------------------
  253. on FieldReadOut
  254.   Global CpSdList,ListVar,SoundName,CpVidList,LocNum,n
  255.   
  256.   --Set n = (charToNum(field "LocReadOut")) - 48
  257.   Set n = LocNum
  258.   Set name = getAt(ListVar,n) 
  259.   Set the forecolor of cast "NameField" = 0
  260.   Set the textStyle of field "NameField" = "bold,extend"
  261.   
  262.   Put name into field "NameField"
  263.   Set SoundName = field "NameField" -- name is used to access sound
  264.   
  265. end FieldReadOut
  266. ---------------------------------------------
  267. on LocStore
  268.   Global ClipLoc,ButtonNum,CpBnList,ScaleFac,LocNum
  269.   
  270.   Set m = LocNum -- (field "LocReadOut")
  271.   setAt(CpBnList,ButtonNum,m) -- stores in CpBnList the loc. of slider
  272.   Set the locH of sprite 37 = (m*ScaleFac) +234
  273. end Locstore
  274. ---------------------------------------------
  275. on VisualDisplay
  276.   Global Viztype
  277.   
  278.   If Viztype = 1 then
  279.     PictDisplay
  280.   else if Viztype = 2 then 
  281.     VidPictDisplay
  282.   end if
  283. end Visual Diplay
  284. ---------------------------------------------
  285. on PictDisplay
  286.   Global LocNum
  287.   
  288.   PuppetSprite 25, True
  289.   Set the castNum of sprite 25 = 500 + LocNum 
  290.   updateStage
  291. end PictDisplay
  292. ---------------------------------------------
  293. on VidPictDisplay
  294.   Global LocNum
  295.   
  296.   PUT LocNum
  297.   PuppetSprite 41, True
  298.   Set the castNum of sprite 41 = 425 + LocNum 
  299.   updateStage
  300. end VidPictDisplay
  301. ---------------------------------------------
  302. on MagnfPlus
  303.   Global LocNum
  304.   
  305.   PuppetSprite 40, True
  306.   PuppetSprite 25, True
  307.   
  308.   Set the castNum of sprite 40 = 164 -- icon
  309.   Set the castNum of sprite 25 = 600 + LocNum-- pict
  310.   Set the locH of sprite 25 = 415
  311.   Set the locV of sprite 25 = 188
  312.   updateStage
  313. end MagnfPlus
  314. ---------------------------------------------
  315. on MagnfMinus
  316.   Global LocNum
  317.   
  318.   PuppetSprite 40, True
  319.   PuppetSprite 25, True
  320.   
  321.   Set the castNum of sprite 40 = 162 
  322.   Set the castNum of sprite 25 = 500 + LocNum -- pict
  323.   Set the locH of sprite 25 = 328
  324.   Set the locV of sprite 25 = 127
  325.   updateStage
  326. end MagnfMinus
  327. ---------------------------------------------
  328. on ClipSndPlay
  329.   Global SoundName
  330.   
  331.   puppetSound SoundName
  332.   updateStage
  333. end ClipSndPlay
  334. ---------------------------------------------
  335. on IntroVid
  336.   Global VolumeVar
  337.   
  338.   Set the castNum of sprite 30 = 401
  339.   preload 401
  340.   Set the movieRate of sprite 30 to 1
  341.   Set the volume of sprite 30 = VolumeVar
  342.   --Set the visibility of sprite 30 to True
  343.   if the preload of cast 401 then
  344.     repeat while the movieRate of sprite 30
  345.       updateStage
  346.       if the mouseDown then exit
  347.     end repeat
  348.   end if
  349. end IntroVid
  350. ---------------------------------------------
  351.  
  352. on VidHandler
  353.   Global VolumeVar,n,IntroVid
  354.   
  355.   --Set vidcast = 400 + n
  356.   Set the castNum of sprite 30 = 400 + n
  357.   preload 400 + n
  358.   Set the movieRate of sprite 30 to 1
  359.   Set the volume of sprite 30 = VolumeVar
  360.   Set the visibility of sprite 30 to True
  361.   repeat while the movieRate of sprite 30
  362.     updateStage
  363.     if the mouseDown then exit
  364.   end repeat
  365.   --Set the visibility of sprite 30 to False
  366.   --end if
  367.   
  368. end VidHandler
  369. ---------------------------------------------
  370. on CpBnUpdate
  371.   Global ClipLoc,ScaleFac,ButtonNum
  372.   
  373.   Put 120/ScaleFac into field "TotalItems"
  374.   -----------PUT ButtonNum
  375.   Set n = getAt(CpBnList,ButtonNum)
  376.   -----------PUT n
  377.   puppetSprite 37, true -- slider
  378.   Set the castNum of sprite 37 = 198 -- or put 198 off screen at prev. marker
  379.   Set the locH of sprite 37 = (n*ScaleFac) + 234
  380.   Set the LocV of sprite 37 = 344
  381.   --Set the constraint of sprite 37 to 36
  382.   updateStage
  383.   
  384.   Set ClipLoc = (the locH of sprite 37) -1 -- trace
  385.   Set the forecolor of cast "NameField" = 0
  386.   Set the textStyle of field "NameField" = "bold,extend"
  387.   SliderReadOut
  388.   FieldReadOut
  389.   updateStage
  390.   
  391. end CpBnUpdate
  392. ---------------------------------------------
  393.  
  394. on VolumeHandler
  395.   Global VolumeVar
  396.   
  397.   repeat while the mouseDown
  398.     
  399.     puppetSprite 23, True
  400.     Set the castNum of sprite 23 = 97 -- backpanel
  401.     Set the locH of sprite 23 to 19
  402.     Set the locV of sprite 23 = 317
  403.     
  404.     puppetSprite 45, True
  405.     Set the castNum of sprite 45 = 214 -- track
  406.     Set the locH of sprite 45 to 19
  407.     Set the locV of sprite 45 to 316
  408.     
  409.     puppetSprite 46, True
  410.     Set the castNum of sprite 46 to 95 -- slider
  411.     Set the moveableSprite of sprite 46 to True
  412.     Set the constraint of sprite 46 to 45
  413.     Set the locH of sprite 46 to 22
  414.     Set the locV of sprite 46 to the mouseV
  415.     
  416.     Put ((the mouseV - 320)*-6)+250 into VolumeVar
  417.     If VolumeVar > 255 then set VolumeVar = 255
  418.     If VolumeVar < 0 then set VolumeVar = 0
  419.     Set the volume of sound 1 to VolumeVar
  420.     updateStage
  421.     
  422.   end repeat
  423.   
  424.   puppetSprite 23, false
  425.   puppetSprite 45, false
  426.   puppetSprite 46, false
  427.   
  428. end VolumeHandler 
  429. ---------------------------------------------
  430. on VolumeIcon
  431.   Global VolumeVar
  432.   
  433.   puppetSprite 23, True
  434.   Set the locV of sprite 23 to 334
  435.   
  436.   If VolumeVar < 5 then 
  437.     set the castNum of sprite 23 = 144
  438.   else
  439.     set the castNum of sprite 23 = 146 + 2*(integer(VolumeVar/64))  
  440.   end if
  441.   updateStage
  442.   
  443. end VolumeIcon
  444. ---------------------------------------------
  445. on CredSclBnHandler n
  446.   Global IDVar,CrdMaxNum
  447.   
  448.   ButtonHandler
  449.   Set IDVar = IDVar + n
  450.   If IDVar < 0 then 
  451.     Set IDVar = 0
  452.     exit --set IDVar = 0
  453.   end if
  454.   
  455.   If IDVar > CrdMaxNum then
  456.     set IDVar = CrdMaxNum
  457.     exit
  458.   end if
  459.   
  460.   CreditsUpdate n
  461.   WindowBarUpdate
  462.   
  463. end CredSclBnHandler
  464. ---------------------------------------------
  465. on CreditsUpdate n
  466.   Global IDVar
  467.   
  468.   
  469.   repeat with i = 35 to 39
  470.     PuppetSprite i, True
  471.   end repeat
  472.   
  473.   repeat with i = 35 to 39
  474.     Set the castNum of sprite i = (the castNum of sprite i) + n
  475.   end repeat
  476.   updateStage
  477.   
  478. end CreditsUpdate
  479. ---------------------------------------------
  480. on WindowBarUpdate
  481.   Global IDVar,CredBarIncr
  482.   
  483.   puppetSprite 34, True
  484.   Set the locV of sprite 34 = 48 + IDVar*CredBarIncr
  485.   updateStage
  486.   
  487. end WindowBarUpdate
  488. ---------------------------------------------
  489. on InfoBnHandler n
  490.   Global IDVar
  491.   
  492.   puppetSprite 48, False
  493.   ButtonHandler
  494.   Set var = 300  + n + IDVar
  495.   If var = 315 then
  496.     CprtHandler 
  497.   else
  498.     
  499.     ---PUT var
  500.     Set the forecolor of cast "CreditsInfoDisplay" = 0
  501.     Set the textStyle of field "CreditsInfoDisplay" = "bold,extend"
  502.     Set the text of field "CreditsInfoDisplay" to the text of cast var
  503.     --PUT the text of field "CreditsInfoDisplay"
  504.     --Set the text of field "CreditsInfoDisplay" = the text of cast var
  505.     --         text rel. to cast no. & sprite no. (the locV of sprite n)
  506.   end if
  507.   
  508. end InfoBnHandler
  509. ---------------------------------------------
  510. on CprtHandler -- copyright
  511.   
  512.   
  513.   puppetSprite 48, true
  514.   Set the castNum of sprite 48 = 315
  515.   Set the locH of sprite 48 = 400
  516.   Set the locH of sprite 48 = 431
  517.   updateStage
  518.   
  519. end CprtHandler
  520. --==============================================================
  521.  
  522. --if ((the castNum of sprite the clickOn) = the mouseCast) then
  523. --Set the castnum of sprite the clickon = n
  524. --updateStage
  525. --end if
  526. ---------------if not IsInside then
  527. --Set the castnum of sprite the clickon = n - 1
  528. --updateStage
  529. --Set Go = False
  530. --exit repeat
  531. ---------else if IsInside and not Go then
  532. -----------Set the castnum of sprite the clickon = n
  533. -----------updateStage
  534. -----------Set Go = true
  535. ----------------------------------------------------------------
  536. --Set the puppet of sprite 48 to True  -- button
  537. --Set the locH of sprite 48 = 599
  538. --Set the locV of sprite 48 = 304
  539. --Set the castNum of sprite 48 = 173
  540. --updateStage
  541.  
  542. --Set the puppet of sprite 33 to True -- bar
  543. --Set the castNum of sprite 33 = 202
  544. --Set the locH of sprite 33 = 542
  545. --Set the locV of sprite 33 = 170
  546.  
  547.  
  548. --Set the puppet of sprite 25 to True -- text
  549. --Set the castNum of sprite 25 = 200
  550. --Set the locH of sprite 25 = 211
  551. --Set the locV of sprite 25 = -226
  552. --updateStage
  553.  
  554. --on mouseDown
  555.  
  556. --Set sprite 48,True
  557. --Set the locH of sprite 48 =
  558. --Set the locV of sprite 48 =
  559. --Set the castNum of sprite 48 =
  560. --update stage
  561.  
  562. --end mouseDown
  563.  
  564. --on mouseUp
  565.  
  566. --Set the castNum of sprite 48 = 133
  567. --Set sprite 48,False
  568.  
  569. --end mouseUp
  570.  
  571.  
  572.  
  573. --Set the visible of sprite 25 = false
  574. --Put ClipLoc - 234 into field "LocDisplay"
  575. --Set the visible of sprite 24 = true
  576. --updateStage
  577.  
  578. --puppetSprite 23, false
  579. --puppetSprite 45, false
  580. --puppetSprite 46, false
  581.  
  582. --------PUT "______________"
  583. --------PUT VolumeVar
  584. --------PUT integer(VolumeVar/64)
  585. --------PUT the castNum of sprite 23 - 146
  586. --------PUT the castNum of sprite 23
  587.